﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demos.DesignPatterns._15_模板方法
{
    /// <summary>
    /// 国内订单处理
    /// </summary>
    public class TDomesticOrderProcessor: TOrderProcessor
    {

        protected override void ProcessPayment()
        {
            Console.WriteLine("国内订单处理：处理支付");
        }
        protected override void ShipOrder()
        {
            Console.WriteLine("国内订单处理：发货");
        }
        protected override bool NeedsGiftWrapping()
        {
            return true;
        }
        protected override void GiftWrap()
        {
            Console.WriteLine("国内订单处理：礼品包装");
        }
         
    }
}
